<template>
  <div id="app">
    <router-view />
  </div>
</template>

<style>
#app {
  min-height: 100vh;
}
</style>

<script setup lang="ts">
import {useLoginStore} from "@/store/useLoginUserStore";

// 进入主页时获取用户信息，供全局使用
const loginUserStore = useLoginStore();
loginUserStore.fetchLoginUser();
</script>
